package com.heh.mybatisplus.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.heh.mybatisplus.model.BLoanInfo;
import com.heh.mybatisplus.model.BidInfo;
import com.heh.mybatisplus.model.CountByVersion;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface BLoanInfoMapper extends BaseMapper<BLoanInfo> {

    List<BLoanInfo> selectBidInfoByProductType(@Param("productType") int productType);

    Page<BLoanInfo> selectBidInfoByProductType(IPage<BLoanInfo> bLoanInfoIPage, @Param("productType") int productType);

    List<Map<String, Object>> getCountByVersionMap();

    List<CountByVersion> getCountByVersion();

    List<CountByVersion> getCountByVersionHaving(@Param("count") int count);

}
